<?php 
namespace app\admin\controller;

use think\Controller;
use think\Validate;
use think\facade\Env;

/**
 * 后台首页
 */
class Index extends Controller
{
	// 主体架构
	public function index()
	{
		return view();
	}


	// 后台默认页
	public function home()
	{
		return view();
	}


	//清除缓存
	public function clearcache()
	{
		$path = Env::get('RUNTIME_PATH');
		if(delete_dir_file($path)){
			$this->result('',1,'清除成功','json');
		}else{
			$this->result('',0,'清除失败','json');
		}        
	}
	
}


 ?>